<template>
  <div class="login">
    <div class="container">
      <!-- <div class="logo"></div> -->
      <div class="login_operate">
        <div class="title"><img src="@/assets/desktop/ADW.svg" alt="" /></div>
        <div style="margin-top: 30px;" class="subtitle">扫一扫登录</div>
        <div style="margin-top: 8px;" class="subtitle">请使用<span class="subtitleM">企业微信APP/微信APP</span>扫码登录</div>
        <div class="box">
          <ORcodeLogin></ORcodeLogin>
          <div class="saomaCon"><img src="@/assets/desktop/saoma.png" alt="" class="saomaImg" /></div>
        </div>
        <div class="smallTitle">企业微信App-「消息」页面右上角-扫一扫</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
// import DefaultLogin from "./components/DefaultLogin.vue";
import ORcodeLogin from "./components/ORcodeLogin.vue";
import { getNowDate } from "@/utils";
import config from '../../../package.json'
export default defineComponent({
  name: "",
  components: {
    ORcodeLogin,
  },
  setup() {
    const dateStr = getNowDate()
    localStorage.setItem("dateNow", dateStr);
    document.title = 'AI桌面助手 ' + config.version + '.'+ dateStr
    return {};
  },
});
</script>
<style scoped lang="scss">
.login {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: white;
  box-sizing: border-box;
  display: flex;

  .container {
    width: 1000px;
    display: flex;
    justify-content: space-between;

    .logo {
      height: 100%;
      width: 64%;
      background-color: red;
      background: url("@/assets/desktop/banner.png") no-repeat 100% 100%;
    }

    .login_operate {
      width: 100%;
      display: flex;
      flex-direction: column;

      .title {
        margin-top: 147px;
        font-size: 26px;
        font-weight: 700;
        text-align: center;
      }

      .subtitle {
        width: 100%;
        text-align: center;
        height: 22px;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        line-height: 22px;
      }

      .subtitleM {
        color: #2567F0;
      }

      .saomaCon {
        margin-left: 30px;
        margin-top: 6px;
        width: 148px;
        height: 166px;
        background: linear-gradient(180deg, #DFDFE5 0%, #FFFFFF 100%);
        border-radius: 22px;
      }

      .saomaImg {
        margin-top: 6px;
        margin-left: 7px;
        width: calc(100% - 14px);
        height: calc(100% - 12px);
      }

      .box {
        display: flex;
        justify-content: center;
        overflow: hidden;
        margin-top: 20px;
      }

      .smallTitle {
        width: 100%;
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        line-height: 20px;
      }
    }
  }
}
</style>

<style lang="scss">
.login {
  .login_operate {
    .el-tabs--border-card>.el-tabs__header .el-tabs__item {
      border: none;
    }

    .el-tabs--border-card>.el-tabs__header {
      border-bottom: none;
    }

    .el-tabs--border-card {
      border: none;
    }

    .el-tabs__nav {
      width: 100%;
    }

    .el-tabs__item {
      height: auto;
      // width: 34%;
      padding: 20px;
      font-size: 18px;
      color: black;
    }

    .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
      color: black;
      font-weight: 700;
    }
  }
}
</style>
